
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Anonym.Data.Entities
{
    /// <summary>
    /// 接口日志
    /// </summary>
    public class Log_Interface
    {

        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long ID { get; set; } = 0;

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; } = new DateTime(1900, 1, 1);

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; } = new DateTime(1900, 1, 1);

        /// <summary>
        /// 耗时（秒）
        /// </summary>
        public decimal WastageTime { get; set; } = 0;

        /// <summary>
        /// 链接地址
        /// </summary>
        public string Link { get; set; } = string.Empty;

        /// <summary>
        /// 控制器
        /// </summary>
        public string ControlName { get; set; } = string.Empty;

        /// <summary>
        /// 方法
        /// </summary>
        public string ActionName { get; set; } = string.Empty;

        /// <summary>
        /// 参数
        /// </summary>
        public string Par { get; set; } = string.Empty;

        /// <summary>
        /// 来源
        /// </summary>
        public string Source { get; set; } = string.Empty;

        /// <summary>
        /// 版本
        /// </summary>
        public string Ver { get; set; } = string.Empty;

        /// <summary>
        /// Ip
        /// </summary>
        public string RequestIp { get; set; } = string.Empty;

        /// <summary>
        /// 用户ID；没有登录就为0
        /// </summary>
        public long UserId { get; set; } = 0;

        /// <summary>
        /// 客户端发起时间
        /// </summary>
        public DateTime ClientTime { get; set; } = new DateTime(1900, 1, 1);

        /// <summary>
        /// 返回值
        /// </summary>
        public string ReturnValue { get; set; } = string.Empty;

        /// <summary>
        /// 提交方式
        /// </summary>
        public string Method { get; set; } = string.Empty;

    }
}

